<?php
namespace Zf2User;

class Module
{
    public function getConfig()
    {
        return include __DIR__ . '/config/module.config.php';
    }

    public function getAutoloaderConfig()
    {
        return array(
            'Zend\Loader\StandardAutoloader' => array(
                'namespaces' => array(
                    __NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
                ),
            ),
        );
    }
    
    public function getServiceConfig()
    {
        return array(
            'factories' => array(
                'Zf2User\Service\User' => function($sm){ 
                    return new Service\User(
                                $sm->get('doctrine.entitymanager.orm_default'),
                                /*$sm->get('Zf2Base\Mail\Transport')*/ NULL ,
                                $sm->get('View')
                            );
                },
            ),
        );
    }
}
